<?php

function microtime_float(){
	list($usec, $sec) = explode(" ", microtime());
	return((float) $usec + (float) $sec);
}
$GLOBALS['TIME_START'] = microtime_float();

if ($_REQUEST['furl'] != ''){
	require 'config.php';
	require 'lib/frameworky.php';
	run(($_REQUEST['furl'] == '__SELF__') ? getenv('REQUEST_URI') . '/index.php' : preg_replace('/^(.*)\/([^\/\.]+)\/*$/', '$1/$2/index.php', $_REQUEST['furl']));
} else {
	header('HTTP/1.1 404 Not Found');
}

?>
